﻿@model Gfw.Web.Models.Site.AnnouncementModel
@{
    ViewBag.Title = "创建公告";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutContent.cshtml";
}


@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>创建公告</legend>

        @*<div class="editor-label">
            @Html.LabelFor(model => model.AnnouncementDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AnnouncementDate)
            @Html.ValidationMessageFor(model => model.AnnouncementDate)
        </div>*@

        <div class="editor-label">
            @Html.LabelFor(model => model.AnnouncementPublisher)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AnnouncementPublisher)
            @Html.ValidationMessageFor(model => model.AnnouncementPublisher)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AnnouncementTitle)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AnnouncementTitle)
            @Html.ValidationMessageFor(model => model.AnnouncementTitle)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AnnouncementKeyWord)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AnnouncementKeyWord)
            @Html.ValidationMessageFor(model => model.AnnouncementKeyWord)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsShow)
        </div>
        <div class="editor-field">
            @Html.CheckBoxFor(model => model.IsShow)
            @Html.ValidationMessageFor(model => model.IsShow)
        </div>

        @*ckEditor*@
        <div class="editor-label">
            @Html.LabelFor(model => model.AnnouncementContent)
        </div>
        <div class="editor-field">
            @*
            @Html.EditorFor(model => model.AnnouncementContent)
            @Html.ValidationMessageFor(model => model.AnnouncementContent)
            *@
            <script type="text/javascript" src="/PlugIn/ckEditor/ckeditor.js"></script>
            <script type="text/javascript" src="/PlugIn/ckFinder/ckfinder.js"></script>
            <textarea name="editor1"></textarea>
            <script type="text/javascript">
                window.onload = function () {
                    var editor = CKEDITOR.replace('editor1');
                    CKFinder.setupCKEditor(editor, '/PlugIn/ckFinder/');
                };</script>
        </div>

        <p>
            <input type="submit" value="创建" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("返回", "Index")
</div>

